﻿@using WarOfDev.Core.StateManagentHelpers
@using WarOfDev.EF

<div class="user-info-container">

@{ var dev = SessionHelper<Developer>.GetCurrentUser(new HttpContextWrapper(HttpContext.Current) as HttpContextBase); }

    @if (Request.IsAuthenticated && dev!=null)
    {
       @Html.Action("CurrentInfo","Account")
         //@Html.Partial("DeveloperInfo", new WarOfDev.Web.Models.DeveloperModel() { Level = 123, ExperienceValue = 1000, GoUpRate = 110});

    }
    else
    { 
        <div class="user-photo level-72-head level-72-1">
        </div>
        <div class="user-info">
            <ul>
                <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
                <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
            </ul>
        </div>
    }
</div>
